import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    component: resolve => require(['../pages/Login'], resolve)
  }, {
    path: '/login',
    component: resolve => require(['../pages/Login'], resolve)
  }, {
    path: '/lawyer-register',
    component: resolve => require(['../pages/LawyerRegister'], resolve)
  }, {
    path: '/law-firm-register',
    component: resolve => require(['../pages/LawFirmRegister'], resolve)
  }, {
    path: '/reset-password',
    component: resolve => require(['../pages/ResetPassword'], resolve)
  }, {
    path: '/to-examine',
    component: resolve => require(['../pages/ToExamine'], resolve)
  }, {
    path: '/agreement',
    component: resolve => require(['../pages/Agreement'], resolve)
  }, {
    path: '/lawyer-center',
    component: resolve => require(['../pages/LawyerCenter'], resolve),
    children: [{
      path: '',
      redirect: 'lawyer-info'
    }, {
      path: '/welcome',
      component: resolve => require(['../pages/Welcome'], resolve)
    }, {
      path: 'lawyer-info',
      component: resolve => require(['../pages/LawyerInfo'], resolve)
    }, {
      path: 'lawyer-transfer',
      component: resolve => require(['../pages/LawyerTransfer'], resolve)
    }, {
      path: 'lawyer-yearinspect',
      component: resolve => require(['../pages/LawyerYearInspect'], resolve)
    }, {
      path: 'lawyer-order',
      component: resolve => require(['../pages/LawyerOrder'], resolve)
    }, {
      path: 'lawyer-message',
      component: resolve => require(['../pages/LawyerMessage'], resolve)
    }, {
      path: 'lawyer-modify-phonenum',
      component: resolve => require(['../pages/LawyerModifyPhonenum'], resolve)
    }, {
      path: 'lawyer-modify-password',
      component: resolve => require(['../pages/LawyerModifyPassword'], resolve)
    }]
  }, {
    path: '/lawyer-establish',
    component: resolve => require(['../pages/LawyerEstablish'], resolve)
  }, {
    path: '/lawyer-customert-confirm',
    component: resolve => require(['../pages/LawyerCustomertConfirm'], resolve)
  }, {
    path: '/lawyer-mapping',
    component: resolve => require(['../pages/LawyerMapping'], resolve)
  }, {
    path: '/lawyer-monitor',
    component: resolve => require(['../pages/LawyerMonitor'], resolve)
  }, {
    path: '/lawyer-finish',
    component: resolve => require(['../pages/LawyerFinish'], resolve)
  }, {
    path: '/firm-center',
    component: resolve => require(['../pages/FirmCenter'], resolve),
    children: [{
      path: '',
      redirect: 'firm-lawyer-audit'
    }, {
      path: '/welcomelawfirm',
      component: resolve => require(['../pages/Welcome'], resolve)
    }, {
      path: 'firm-lawyer-audit',
      component: resolve => require(['../pages/FirmLawyerAudit'], resolve)
    }, {
      path: 'firm-annual-check',
      component: resolve => require(['../pages/FirmAnnualCheck'], resolve)
    }, {
      path: 'firm-modify-phonenum',
      component: resolve => require(['../pages/FirmModifyPhonenum'], resolve)
    }, {
      path: 'firm-modify-password',
      component: resolve => require(['../pages/FirmModifyPassword'], resolve)
    }]
  }]
})
